# Maintainer: Felix Yan <felixonmars@archlinux.org>
# Contributor: Josip Ponjavic <josipponjavic at gmail dot com>
# Contributor: Xu Fasheng <fasheng.xu[AT]gmail.com>

pkgname=gsettings-qt
pkgver=0.2
pkgrel=1
pkgdesc="Qml bindings for GSettings"
arch=('loong64' 'x86_64')
url="https://gitlab.com/ubports/development/core/gsettings-qt"
license=('LGPL')
depends=('qt5-declarative')
source=("https://gitlab.com/ubports/development/core/gsettings-qt/-/archive/v$pkgver/gsettings-qt-v$pkgver.tar.bz2")
sha256sums=('86cb53943b61c8750d25ba020313669d4fcf0ad8ad9feed0939ebfe95d195307')

build() {
  cd gsettings-qt-v$pkgver
  qmake-qt5 PREFIX=/usr
  make
}

package() {
  cd gsettings-qt-v$pkgver
  make INSTALL_ROOT="$pkgdir" install
  rm -r "$pkgdir"/usr/tests
}
